import request from '@/utils/request'

/* 节水工程项目台账表 */
// 列表查询
const engineeringProjectList = function (params = {}) {
  return request({
    url: '/zy-api/api/engineer/findList',
    method: 'post',
    data: params
  })
}

// 新增
const addEngineeringProject = function (params = {}) {
  return request({
    url: '/zy-api/api/engineer/insert',
    method: 'post',
    data: params
  })
}

// 修改
const editEngineeringProject = function (params = {}) {
  return request({
    url: '/zy-api/api/engineer/update',
    method: 'post',
    data: params
  })
}

// 删除
const delEngineeringProject = function (params = {}) {
  return request({
    url: '/zy-api/api/engineer/delete',
    method: 'post',
    data: params
  })
}

// 审核
const auditEngineeringProject = function (params = {}) {
  return request({
    url: '/zy-api/api/engineer/review',
    method: 'post',
    data: params
  })
}

// 主要建设内容选项
const mainContentOptions = function (params = {}) {
  return request({
    url: '/zy-api/api/engineer/dict',
    method: 'post',
    data: params
  })
}

export {
  engineeringProjectList,
  addEngineeringProject,
  editEngineeringProject,
  delEngineeringProject,
  auditEngineeringProject,
  mainContentOptions
}